<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.chanyachting.emall.util.*"%>
<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<script type="text/javascript">
<!--
document.form3.button4.disabled = true;

function gotoSearch() {
	var productPriceNums = document.form3.productPriceNum.value;
	var lengthNums = document.form3.lengthNum.value;
	var index = productPriceNums.indexOf("-");
	var lenIndex = lengthNums.indexOf("-");
	var keyword = document.form3.keyword.value;

	if (keyword == "") {
		alert("请输入关键字！");
		return false;
	}
	
	if (productPriceNums != null) {
		var min = productPriceNums.substring(0,index);
		var max = productPriceNums.substring(index);
		max = max.replace("-","");
	
		document.form3.minProductPrice.value = min;
		document.form3.maxProductPrice.value = max;
	}

	if (lengthNums != null) {
		var minLen = lengthNums.substring(0,index);
		var maxLen = lengthNums.substring(index);
		maxLen = maxLen.replace("-","");
	
		document.form3.minLength.value = minLen;
		document.form3.maxLength.value = maxLen;
	}
	//alert("min=" + min + "; max=" + max);
	document.form3.submit();
}

function gotoPage(currentPage) {
	document.form3.onsubmit = "return false;";
	document.pageSelectForm.currentPage.value = currentPage;
	document.pageSelectForm.submit();
}

function gotoPage2() {
	var i = document.form3.select6.value;
	document.pageSelectForm.currentPage.value = i;
	document.pageSelectForm.submit();
}
//-->
</script>
<div class="search_bar">
<form id="pageSelect" name="pageSelectForm" method="post" action="/chinayachting/frontend/sale/Index.do">
    <input name="currentPage" type="hidden" value="">
</form>
      <form id="form3_1" name="form3" method="post" action="/chinayachting/frontend/sale/Index.do">
        	<input name="keyword" type="text" id="textfield4" class="ss_keyword" />
            <input type="submit" name="button3" id="button3" class="btn_search" value="搜索" />
            <input type="button" name="button4" id="button4" class="btn_gjsearch" value="" onclick="" />
            <input name="minProductPrice" type="hidden" value="" />
            <input name="maxProductPrice" type="hidden" value="" />
            <input name="minLength" type="hidden" value="" />
            <input name="maxLength" type="hidden" value="" />
            <!--按区域_start-->
            <div id="test9" class="dropdown" tabIndex="9">
                <select name="city">
                    <option value="">按区域</option>
                    <option value="^">不限</option>
                    <% Map cityList = CodeMap.city; pageContext.setAttribute("cityLs",cityList);  %>
		              <logic:iterate id="citys" name="cityLs">
		              <option value="${citys.key}">${citys.value}</option>
		              </logic:iterate>
                </select>
            </div>
            <!--按区域_end-->
            <div id="test7" class="dropdown" tabIndex="7" title="sssss">
                <select name="productPriceNum">
                    <option value="">按价格</option>
                    <option value="0-9999999999">不限</option>
                    <option value="0-10000">10万</option>
                    <option value="100000-500000">10-50万</option>
                    <option value="500000-1000000">50-100万</option>
                    <option value="1000000-3000000">100-300万</option>
                    <option value="3000000-5000000">300-500万</option>
                    <option value="5000000-10000000">500-1000万</option>
                    <option value="10000000-30000000">1000-3000万</option>
                    <option value="30000000-50000000">3000-5000万</option>
                    <option value="50000000-9999999999">5000万以上</option>
                </select>
            </div>
            <!--按价格_end-->
            <!--按尺寸_start-->
            <div id="test8" class="dropdown" tabIndex="8">
                <select name="lengthNum">
                    <option value="">按尺寸</option>
                    <option value="0-9999999999">不限</option>
                    <option value="0-8">8米</option>
                    <option value="8-12">8-12米</option>
                    <option value="12-15">12-15米</option>
                    <option value="15-18">15-18米</option>
                    <option value="18-24">18-24米</option>
                    <option value="24-36">24-36米</option>
                    <option value="36-50">36-50米</option>
                    <option value="50-80">50-80米</option>
                    <option value="80-9999999999">80米以上</option>
                </select>
            </div>
            <!--按尺寸_end-->
            <div id="pagefy">
                ${sellyachtForm.selectionStr}
            </div>
	  </form>
    </div>